import 'package:flutter/material.dart';
import 'package:jg_docs/features/features.dart';

class AppRoutes {
  static Route onGeneratedRoute(RouteSettings settings) {
    return MaterialPageRoute(
      settings: settings,
      builder: (context) {
        switch (settings.name) {
          case '/':
            return HomePage();
          case '/metrics':
            return MetricsPage();
          case '/catalog':
            return CatalogPage();
          case '/docs':
            return DocsPage();
          case '/discover':
            return DiscoverPage();
          case '/appSize':
            return DiscoverPage();
          default:
            return HomePage();
        }
      },
    );
  }
}
